<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">System.Console.Haskeline.Internal</span><span>
</span><span id="line-2"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="System.Console.Haskeline.Internal.html#debugTerminalKeys"><span class="hs-identifier">debugTerminalKeys</span></a></span><span> </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.html"><span class="hs-identifier">System.Console.Haskeline</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="System.Console.Haskeline.html#defaultSettings"><span class="hs-identifier">defaultSettings</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="System.Console.Haskeline.html#outputStrLn"><span class="hs-identifier">outputStrLn</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-5"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.Command.html"><span class="hs-identifier">System.Console.Haskeline.Command</span></a></span><span>
</span><span id="line-6"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.InputT.html"><span class="hs-identifier">System.Console.Haskeline.InputT</span></a></span><span>
</span><span id="line-7"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.LineState.html"><span class="hs-identifier">System.Console.Haskeline.LineState</span></a></span><span>
</span><span id="line-8"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.Monads.html"><span class="hs-identifier">System.Console.Haskeline.Monads</span></a></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.RunCommand.html"><span class="hs-identifier">System.Console.Haskeline.RunCommand</span></a></span><span>
</span><span id="line-10"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Console.Haskeline.Term.html"><span class="hs-identifier">System.Console.Haskeline.Term</span></a></span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-comment">-- | This function may be used to debug Haskeline's input.</span><span>
</span><span id="line-13"></span><span class="hs-comment">--</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- It loops indefinitely; every time a key is pressed, it will</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- print that key as it was recognized by Haskeline.</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- Pressing Ctrl-C will stop the loop.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- Haskeline's behavior may be modified by editing your @~/.haskeline@</span><span>
</span><span id="line-19"></span><span class="hs-comment">-- file.  For details, see: &lt;https://github.com/judah/haskeline/wiki/CustomKeyBindings&gt;</span><span>
</span><span id="line-20"></span><span class="hs-comment">--</span><span>
</span><span id="line-21"></span><span id="local-6989586621679100445"><span class="annot"><a href="System.Console.Haskeline.Internal.html#debugTerminalKeys"><span class="hs-identifier hs-type">debugTerminalKeys</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="#local-6989586621679100445"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-22"></span><span id="debugTerminalKeys"><span class="annot"><span class="annottext">debugTerminalKeys :: forall a. IO a
</span><a href="System.Console.Haskeline.Internal.html#debugTerminalKeys"><span class="hs-identifier hs-var hs-var">debugTerminalKeys</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Settings IO -&gt; InputT IO a -&gt; IO a
forall (m :: * -&gt; *) a.
(MonadIO m, MonadMask m) =&gt;
Settings m -&gt; InputT m a -&gt; m a
</span><a href="System.Console.Haskeline.InputT.html#runInputT"><span class="hs-identifier hs-var">runInputT</span></a></span><span> </span><span class="annot"><span class="annottext">Settings IO
forall (m :: * -&gt; *). MonadIO m =&gt; Settings m
</span><a href="System.Console.Haskeline.html#defaultSettings"><span class="hs-identifier hs-var">defaultSettings</span></a></span><span> </span><span class="annot"><span class="annottext">(InputT IO a -&gt; IO a) -&gt; InputT IO a -&gt; IO a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-23"></span><span>    </span><span class="annot"><span class="annottext">String -&gt; InputT IO ()
forall (m :: * -&gt; *). MonadIO m =&gt; String -&gt; InputT m ()
</span><a href="System.Console.Haskeline.html#outputStrLn"><span class="hs-identifier hs-var">outputStrLn</span></a></span><span>
</span><span id="line-24"></span><span>        </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Press any keys to debug Haskeline's input, or ctrl-c to exit:&quot;</span></span><span>
</span><span id="line-25"></span><span>    </span><span id="local-6989586621679100332"><span class="annot"><span class="annottext">RunTerm
</span><a href="#local-6989586621679100332"><span class="hs-identifier hs-var">rterm</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReaderT
  RunTerm
  (ReaderT
     (IORef History)
     (ReaderT
        (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))
  RunTerm
-&gt; InputT IO RunTerm
forall (m :: * -&gt; *) a.
ReaderT
  RunTerm
  (ReaderT
     (IORef History)
     (ReaderT
        (IORef KillRing) (ReaderT Prefs (ReaderT (Settings m) m))))
  a
-&gt; InputT m a
</span><a href="System.Console.Haskeline.InputT.html#InputT"><span class="hs-identifier hs-var">InputT</span></a></span><span> </span><span class="annot"><span class="annottext">ReaderT
  RunTerm
  (ReaderT
     (IORef History)
     (ReaderT
        (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))
  RunTerm
forall r (m :: * -&gt; *). MonadReader r m =&gt; m r
</span><a href="System.Console.Haskeline.Monads.html#ask"><span class="hs-identifier hs-var">ask</span></a></span><span>
</span><span id="line-26"></span><span>    </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RunTerm -&gt; Either TermOps FileOps
</span><a href="System.Console.Haskeline.Term.html#termOps"><span class="hs-identifier hs-var hs-var">termOps</span></a></span><span> </span><span class="annot"><span class="annottext">RunTerm
</span><a href="#local-6989586621679100332"><span class="hs-identifier hs-var">rterm</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-27"></span><span>        </span><span class="annot"><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-type">Right</span></a></span><span> </span><span class="annot"><span class="annottext">FileOps
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; InputT IO a
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;debugTerminalKeys: not run in terminal mode&quot;</span></span><span>
</span><span id="line-28"></span><span>        </span><span class="annot"><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-type">Left</span></a></span><span> </span><span id="local-6989586621679100327"><span class="annot"><span class="annottext">TermOps
</span><a href="#local-6989586621679100327"><span class="hs-identifier hs-var">tops</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">TermOps -&gt; InputCmdT IO a -&gt; InputT IO a
forall (m :: * -&gt; *) a.
MonadIO m =&gt;
TermOps -&gt; InputCmdT m a -&gt; InputT m a
</span><a href="System.Console.Haskeline.InputT.html#runInputCmdT"><span class="hs-identifier hs-var">runInputCmdT</span></a></span><span> </span><span class="annot"><span class="annottext">TermOps
</span><a href="#local-6989586621679100327"><span class="hs-identifier hs-var">tops</span></a></span><span> </span><span class="annot"><span class="annottext">(InputCmdT IO a -&gt; InputT IO a) -&gt; InputCmdT IO a -&gt; InputT IO a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">TermOps
-&gt; Prefix
-&gt; KeyCommand
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     a
-&gt; InsertMode
-&gt; InputCmdT IO a
forall (m :: * -&gt; *) s a.
(CommandMonad m, MonadState Layout m, LineState s) =&gt;
TermOps -&gt; Prefix -&gt; KeyCommand m s a -&gt; s -&gt; m a
</span><a href="System.Console.Haskeline.RunCommand.html#runCommandLoop"><span class="hs-identifier hs-var">runCommandLoop</span></a></span><span> </span><span class="annot"><span class="annottext">TermOps
</span><a href="#local-6989586621679100327"><span class="hs-identifier hs-var">tops</span></a></span><span> </span><span class="annot"><span class="annottext">Prefix
</span><a href="#local-6989586621679100324"><span class="hs-identifier hs-var">prompt</span></a></span><span>
</span><span id="line-29"></span><span>                                            </span><span class="annot"><span class="annottext">KeyCommand
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  a
forall {u}.
KeyCommand
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  u
</span><a href="#local-6989586621679100323"><span class="hs-identifier hs-var">loop</span></a></span><span> </span><span class="annot"><span class="annottext">InsertMode
</span><a href="System.Console.Haskeline.LineState.html#emptyIM"><span class="hs-identifier hs-var">emptyIM</span></a></span><span>
</span><span id="line-30"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-31"></span><span>    </span><span id="local-6989586621679100323"><span class="annot"><span class="annottext">loop :: KeyCommand
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  u
</span><a href="#local-6989586621679100323"><span class="hs-identifier hs-var hs-var">loop</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Key
 -&gt; Maybe
      (KeyConsumed
         (Command
            (StateT
               Layout
               (UndoT
                  (StateT
                     HistLog
                     (ReaderT
                        (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
            InsertMode
            u)))
-&gt; KeyCommand
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
forall a. (Key -&gt; Maybe (KeyConsumed a)) -&gt; KeyMap a
</span><a href="System.Console.Haskeline.Command.html#KeyMap"><span class="hs-identifier hs-var">KeyMap</span></a></span><span> </span><span class="annot"><span class="annottext">((Key
  -&gt; Maybe
       (KeyConsumed
          (Command
             (StateT
                Layout
                (UndoT
                   (StateT
                      HistLog
                      (ReaderT
                         (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
             InsertMode
             u)))
 -&gt; KeyCommand
      (StateT
         Layout
         (UndoT
            (StateT
               HistLog
               (ReaderT
                  (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
      InsertMode
      u)
-&gt; (Key
    -&gt; Maybe
         (KeyConsumed
            (Command
               (StateT
                  Layout
                  (UndoT
                     (StateT
                        HistLog
                        (ReaderT
                           (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
               InsertMode
               u)))
-&gt; KeyCommand
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679100312"><span class="annot"><span class="annottext">Key
</span><a href="#local-6989586621679100312"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">KeyConsumed
  (Command
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u)
-&gt; Maybe
     (KeyConsumed
        (Command
           (StateT
              Layout
              (UndoT
                 (StateT
                    HistLog
                    (ReaderT
                       (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
           InsertMode
           u))
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(KeyConsumed
   (Command
      (StateT
         Layout
         (UndoT
            (StateT
               HistLog
               (ReaderT
                  (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
      InsertMode
      u)
 -&gt; Maybe
      (KeyConsumed
         (Command
            (StateT
               Layout
               (UndoT
                  (StateT
                     HistLog
                     (ReaderT
                        (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
            InsertMode
            u)))
-&gt; KeyConsumed
     (Command
        (StateT
           Layout
           (UndoT
              (StateT
                 HistLog
                 (ReaderT
                    (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
        InsertMode
        u)
-&gt; Maybe
     (KeyConsumed
        (Command
           (StateT
              Layout
              (UndoT
                 (StateT
                    HistLog
                    (ReaderT
                       (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
           InsertMode
           u))
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Command
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  u
-&gt; KeyConsumed
     (Command
        (StateT
           Layout
           (UndoT
              (StateT
                 HistLog
                 (ReaderT
                    (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
        InsertMode
        u)
forall a. a -&gt; KeyConsumed a
</span><a href="System.Console.Haskeline.Command.html#Consumed"><span class="hs-identifier hs-var">Consumed</span></a></span><span> </span><span class="annot"><span class="annottext">(Command
   (StateT
      Layout
      (UndoT
         (StateT
            HistLog
            (ReaderT
               (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
   InsertMode
   u
 -&gt; KeyConsumed
      (Command
         (StateT
            Layout
            (UndoT
               (StateT
                  HistLog
                  (ReaderT
                     (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
         InsertMode
         u))
-&gt; Command
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
-&gt; KeyConsumed
     (Command
        (StateT
           Layout
           (UndoT
              (StateT
                 HistLog
                 (ReaderT
                    (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
        InsertMode
        u)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span>
</span><span id="line-32"></span><span>            </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CmdM
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
-&gt; InsertMode
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
forall a b. a -&gt; b -&gt; a
</span><a href="../../base/src/GHC.Base.html#const"><span class="hs-identifier hs-var">const</span></a></span><span> </span><span class="annot"><span class="annottext">(CmdM
   (StateT
      Layout
      (UndoT
         (StateT
            HistLog
            (ReaderT
               (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
   InsertMode
 -&gt; InsertMode
 -&gt; CmdM
      (StateT
         Layout
         (UndoT
            (StateT
               HistLog
               (ReaderT
                  (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
      InsertMode)
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
-&gt; InsertMode
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-33"></span><span>                </span><span class="annot"><span class="annottext">Effect
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     ()
forall (m :: * -&gt; *). Effect -&gt; CmdM m ()
</span><a href="System.Console.Haskeline.Command.html#effect"><span class="hs-identifier hs-var">effect</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(Prefix -&gt; LineChars) -&gt; Effect
</span><a href="System.Console.Haskeline.Command.html#LineChange"><span class="hs-identifier hs-var">LineChange</span></a></span><span> </span><span class="annot"><span class="annottext">((Prefix -&gt; LineChars) -&gt; Effect)
-&gt; (Prefix -&gt; LineChars) -&gt; Effect
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">LineChars -&gt; Prefix -&gt; LineChars
forall a b. a -&gt; b -&gt; a
</span><a href="../../base/src/GHC.Base.html#const"><span class="hs-identifier hs-var">const</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">[</span><span class="hs-special">]</span><span class="hs-special">,</span><span class="hs-special">[</span><span class="hs-special">]</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-34"></span><span>                </span><span class="annot"><span class="annottext">Effect
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     ()
forall (m :: * -&gt; *). Effect -&gt; CmdM m ()
</span><a href="System.Console.Haskeline.Command.html#effect"><span class="hs-identifier hs-var">effect</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[String] -&gt; Effect
</span><a href="System.Console.Haskeline.Command.html#PrintLines"><span class="hs-identifier hs-var">PrintLines</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Key -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Key
</span><a href="#local-6989586621679100312"><span class="hs-identifier hs-var">k</span></a></span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-35"></span><span>                </span><span class="annot"><span class="annottext">InsertMode
-&gt; CmdM
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
forall (m :: * -&gt; *) s. (Monad m, LineState s) =&gt; Command m s s
</span><a href="System.Console.Haskeline.Command.html#setState"><span class="hs-identifier hs-var">setState</span></a></span><span> </span><span class="annot"><span class="annottext">InsertMode
</span><a href="System.Console.Haskeline.LineState.html#emptyIM"><span class="hs-identifier hs-var">emptyIM</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-36"></span><span>            </span><span class="annot"><span class="annottext">(InsertMode
 -&gt; CmdM
      (StateT
         Layout
         (UndoT
            (StateT
               HistLog
               (ReaderT
                  (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
      InsertMode)
-&gt; Command
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
-&gt; Command
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
forall (m :: * -&gt; *) s t u.
Monad m =&gt;
Command m s t -&gt; Command m t u -&gt; Command m s u
</span><a href="System.Console.Haskeline.Command.html#%3E%7C%3E"><span class="hs-operator hs-var">&gt;|&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">KeyCommand
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  u
-&gt; Command
     (StateT
        Layout
        (UndoT
           (StateT
              HistLog
              (ReaderT
                 (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
     InsertMode
     u
forall (m :: * -&gt; *) s t. KeyCommand m s t -&gt; Command m s t
</span><a href="System.Console.Haskeline.Command.html#keyCommand"><span class="hs-identifier hs-var">keyCommand</span></a></span><span> </span><span class="annot"><span class="annottext">KeyCommand
  (StateT
     Layout
     (UndoT
        (StateT
           HistLog
           (ReaderT
              (IORef KillRing) (ReaderT Prefs (ReaderT (Settings IO) IO))))))
  InsertMode
  u
</span><a href="#local-6989586621679100323"><span class="hs-identifier hs-var">loop</span></a></span><span>
</span><span id="line-37"></span><span>    </span><span id="local-6989586621679100324"><span class="annot"><span class="annottext">prompt :: Prefix
</span><a href="#local-6989586621679100324"><span class="hs-identifier hs-var hs-var">prompt</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Prefix
</span><a href="System.Console.Haskeline.LineState.html#stringToGraphemes"><span class="hs-identifier hs-var">stringToGraphemes</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&gt; &quot;</span></span><span>
</span><span id="line-38"></span></pre></body></html>